|
|
|
|
|
|
|
Chapter 21: System Objects |
|
|
|
|
|
|
|
|
Name three generic object types. |
|
|
|
|
|
|
|
|
Answer: Form, Control, MDIForm, and Object. |
|
|
|
|
|
|
|
|
Describe the function of the New keyword. |
|
|
|
|
|
|
|
|
Answer: Creates a new instance of a class. |
|
|
|
|
|
|
|
|
Which type of object is more efficient to usegeneric or specific? |
|
|
|
|
|
|
|
|
Answer: The reference is compiled; it does not need to be determined at runtime. |
|
|
|
|
|
|
|
|
What are the built-in collections in Visual Basic? |
|
|
|
|
|
|
|
|
Answer: Forms, Controls, and Printers. |
|
|
|
|
|
|
|
|
How might collections help you in developing your application? |
|
|
|
|
|
|
|
|
Answer: They allow you to store groups of objects and iterate over them as a group. |
|
|
|
|
|
|
|
|
List the properties of the Collection object. |
|
|
|
|
|
|
|
|
What are the methods of the Collection object? |
|
|
|
|
|
|
|
|
Answer: Add, Item, and Remove. |
|
|
|
|
|
|
|
|
Why should you build a class that encapsulates the Collection object? |
|
|
|
|
|
|
|
|
Answer: To avoid having different object types in the same collection. |
|
|
|
|
|
|
|
|
Chapter 23: Tips and Tricks |
|
|
|
|
|
|
|
|
Which event do you use to restrict user input in text boxes? |
|
|
|
|
|
|
|
|
Which function do you use to force uppercase letters? |
|
|
|
|
|